<?php
include ('inc/common.inc.php');

$title = "上传头像";
$author = "SkyWorld";
$newName = NCG_PATH.'files/userface/09122358';

if(isset($_POST[SUB]))
{

	for($i=1; $i<=3; $i++)
	{
		$file = 'myfile'.$i;
	$error = imageUpload($file,$newName);
	if($error==0)
		echo "上传成功";
	else
		echo "上传失败".$error;
	}
	}
	//unset($_POST[SUB]);
include template('uploadtest.html');

?>


